<h1>Listing milestones</h1>

<table>
  <tr>
    <th>Number</th>
    <th>Due date</th>
    <th>Name</th>
  </tr>

<% @milestones.each do |milestone| %>
  <tr>
    <td><%=h milestone.number %></td>
    <td><%=h milestone.due_date %></td>
    <td><%=h milestone.name %></td>
    <td><%= link_to 'Show', milestone %></td>
    <td><%= link_to 'Edit', edit_milestone_path(milestone) %></td>
    <td><%= link_to 'Destroy', milestone, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New milestone', new_milestone_path %>
